<?php

class IndexController extends Silk_Controller_Action {

    public function indexAction(){
	$this->disableView();

	$object = Silk::GetDefaultObject();

	if ($object){
	    logdebug("IndexController.indexAction: Rendering object {$object->object_id}");
	    $params = array_merge($this->_getAllParams(), array('object' => $object));

	    return $this->_forward('render', 'object', null, $params);

	} else
	    throw new Silk_Exception('No default object set');
    }

    public function action_notinstalled(){

	die('Silk CMS is not properly installed or the database is not accessible!');
    }

}

?>